<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
	<style>
		body, input{
			font-family: Calibri, Arial;
		}
		table#contact {
			border-collapse: collapse;
			width:550px;
		}
		th {
			height: 40px;
			background-color: #ffee55;
		}
	</style>
	<title>Invoices</title>
</head>
<body>

<s:actionerror/>


<h2>Invoices</h2>
<table id="invoice" border="1">
<tr>
	<th>nomer</th>
	<th>data1</th>
	<th>data2</th>
	<th>sender</th>
	<th>receiver</th>
</tr>
<s:iterator value="invoiceList" var="invoice">
	<tr>
		<td><s:property value="documentnumber"/></td>
		<td><s:property value="documentdate1"/></td>
		<td><s:property value="documentdate2"/></td>
		<td><s:property value="sendername"/></td>
		<td><s:property value="receivername"/></td>
	</tr>	
</s:iterator>
</table>

<h2>Details</h2>
<table id="details" border="1">
<tr>
	<th>line no</th>
	<th>description</th>
	<th>quantity</th>
	<th>price</th>
</tr>
<s:iterator value="detailsList" var="details">
	<tr>
		<td><s:property value="linenumber"/></td>
		<td><s:property value="itemdescription"/></td>
		<td><s:property value="invoicequantity"/></td>
		<td><s:property value="invoiceunitnetprice"/></td>
	</tr>	
</s:iterator>
</table>

</body>
</html>